🛑STOP hardcoding procedural and calculation “business logic” into your application codes; instead, use Boxed Expressions!
Using a business rule engine, you build decisions that are generally a set of if-then-else presented in different forms, such as a Decision Table, Natural Language, or Tree-SubTree.
However, the decision may not be only based on a set of if-then-else and requires a more complex procedural calculation. What do you do then?
⚠️Do you want to code those logic and bring them to the BRE (Business Rules Engine) for execution? that's probably not such a good idea, as it contradicts the whole purpose of a rule engine to separate the “business logic” from the application in the first place.
That's where the Boxed Expressions, part of the Decision Model and Notation (DMN) standard, come into the picture.
✨A decision logic may be a set of if-then-else models, procedural logic for a calculation, or an invocation call to another type of logic. Anything the logic intends to do is a form of Boxed Expressions in the Decision Model and Notation standard.
There are several types of boxed expressions in the standard.
– Function: Allows defining a function for execution
– Context: Creates a hierarchical set of expressions to create a complex object or calculates a value based on hierarchy.
– Invocation: Calls to other boxed expressions as they reusable decision logic
– Decision Table: A tabular form that structures a set of inputs to produce a set of outputs.
(Note that several other kinds of Boxed Expressions exist, such as Filters, Iterators, Lists, and Relations.)
🤔How do you invoke them? In DMN the Decision Requirement Diagram—DRD starts the execution of everything. Simply Link the Boxed Expressions to the Business Knowledge part of the DRD for execution as functions.
🚀Decision Model and Notation (DMN) is a significant movement in modeling and executing rule-driven decisions. But innovation does not stop there. Models using Decision Graph (the extended version of Decision Requirement Diagram—DRD) enables you to create a Composite AI to integrate businessrules with machinelearning optimization data processing, on-the-fly data transformation, and many more different types of decisions as part of a holistic model.
➡️Learn more about Boxed Expressions at https://lnkd.in/gj2mgpji
–
Follow me if you are looking for unfiltered views into decisionintelligence ai. Hit 🔔on my profile and get a notification for all my new daily posts.
Posted here.
Published January 21st, 2025 at 07:30 am

